home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 5_programming / on / public_msg < prev    next >
Encoding:
Text File  |  2001-03-21  |  617 b   |  26 lines

  1. Synopsis:
  2.    on [<mode>]public_msg [<serial#>] [-|^]<match> { <action> }
  3.  
  4. Description:
  5.    This hook is triggered whenever the client receives a public message in
  6.    a channel from someone not actually in the channel.
  7.  
  8. Parameters:
  9.    $0    nickname sending message
  10.    $1    channel sent to
  11.    $2-   text of message
  12.  
  13. Examples:
  14.    To customize how these messages are displayed:
  15.       on ^public_msg "*" {
  16.          if ( [$1] == C ) {
  17.             echo *** \($0\) $2-
  18.          } {
  19.             echo *** \($0:$1\) $2-
  20.          }
  21.       }
  22.  
  23. See Also:
  24.    on(5) public, public_notice, public_notice; msg(1)
  25.  
  26.